quick [php function] -> [javascript function] question
Posted
by Haroldo
on Stack Overflow
See other posts from Stack Overflow
or by Haroldo
Published on 2010-06-11T10:13:33Z
Indexed on
2010/06/11
10:22 UTC
Read the original article
Hit count: 139
JavaScript
if anyone fancies doing me a really quick favour, it would be really appreciated:
static function make_url_safe($z){
$z = strtolower($z);
$z = preg_replace('/[^a-zA-Z0-9\s] /i', '', $z);
$z = str_ireplace(' ', '-', $z);
return $z;
}
what js functions should i be looking at to convert this function to javascript?
© Stack Overflow or respective owner